@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <ul class="nav nav-tabs" role="tablist">
                <li class="disabled"><a>资源</a></li>
                <li role="presentation" class="active"><a href="#news" aria-controls="news" role="tab" data-toggle="tab">图文</a></li>
                <li role="presentation"><a href="#image" aria-controls="image" role="tab" data-toggle="tab">图片</a></li>
                <li role="presentation"><a href="#video" aria-controls="video" role="tab" data-toggle="tab">视频</a></li>
                <li role="presentation"><a href="#voice" aria-controls="voice" role="tab" data-toggle="tab">语音</a></li>
            </ul>
            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="news">
                    <div class="row">
                        @foreach($materialList as $item)
                            <div class="col-xs-6 col-md-3">
                                <a href="#" class="thumbnail">
                                    <img src="{{ $item->thumb_url }}" alt="{{ $item->title }}">
                                </a>
                                {{ $item->title }}
                            </div>
                        @endforeach
                    </div>
                    {!! $materialList->render() !!}
                </div>
                <div role="tabpanel" class="tab-pane" id="image">..2.</div>
                <div role="tabpanel" class="tab-pane" id="video">.3..</div>
                <div role="tabpanel" class="tab-pane" id="voice">.4..</div>
            </div>
        </div>
    </div>

@endsection
